package com.itgaoshu.hospitalproject.service.impl;

import com.itgaoshu.hospitalproject.bean.Drugdictionary;
import com.itgaoshu.hospitalproject.bean.Drugstore;
import com.itgaoshu.hospitalproject.mapper.PutinMapper;
import com.itgaoshu.hospitalproject.service.PutinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class PutinServiceImpl implements PutinService {
    @Autowired
    private PutinMapper putinMapper;
    public List<Drugdictionary> selectyaopin(Drugdictionary drugdictionary){
        return putinMapper.selectyaopin(drugdictionary);
    }
    public int selnumber(Drugstore drugstore){
        return putinMapper.selnumber(drugstore);
    }
    public int  adddrugstore(Drugstore drugstore){
        return putinMapper.adddrugstore(drugstore);
    }
    public int selectdrugsBydrugstorename(Drugstore drugstore){
        return putinMapper.selectdrugsBydrugstorename(drugstore);
    }
    public int updatedrugs(Drugstore drugstore){
        return putinMapper.updatedrugs(drugstore);
    }
}
